FreeRTOS example

Create Vivado Project

Since no hardware modifications are required for this experiment, we will directly use the previous hardware project.

Create Vitis Project

There are two methods: one is to add a new platform project, and the second is to add a new domain to the existing platform project.

Add a New Platform Project

Create a new platform project:

image-20250811172356197

The only difference is selecting FREERTOS here:

image-20250811172703994

After creation is complete, the steps to create a new application project are the same as before.

 

Add a New Domain

Previous projects were all based on bare-metal development, and the created platform project was also bare-metal based. Therefore, we need to create a new platform project or application project. The difference between the two can be found in the 1-hello_world document.

Create a new application project: File->New->Application Project

image-20250624091256376

Select the already created platform file:

image-20250707164140946

Name the project freertos:

image-20250624091530523

The difference from bare-metal is that in this step, you select the freertos operating system:

image-20250707164412625

Next, select the FreeRTOS Hello World template:

image-20250624091714287

The application project is now created.

Compile and Debug

After the project is compiled successfully, connect the development board's JTAG to the computer using a Type-C USB cable. Use another Type-C USB cable to connect the development board's PS UART to the computer.

On the computer, open the serial debugging tool MobaXterm and establish a connection with the development board's PS UART.

image-20250624095055314

In Vitis, enter debug mode: under Debug As, select the first option. Run at full speed to see the debugging information through the serial port.

image-20250707164549138

The debugging results are as follows:

image-20250624092442355